package com.zby.admin.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.zby.enums.AuditEnum;
import com.zby.enums.ConditionEnum;
import lombok.Data;
import org.dromara.autotable.annotation.AutoTable;
import org.dromara.autotable.annotation.ColumnComment;

import java.util.List;

@Data
@AutoTable
public class Products extends BasePojo {
    // 发布的用户id
    @ColumnComment("用户id")
    private String userId;
    // 商品标题
    @ColumnComment("商品标题")
    private String title;
    //  首页商品图片
    @ColumnComment("首页商品图片")
    private String homeImage;
//    // 商品展示图片
//    @TableField(exist = false)
//    private List<Images> image;
    // 商品价格
    @ColumnComment("商品价格")
    private Integer price;
    //    商品分类id
    @ColumnComment("商品分类id")
    private String categoryId;
    // 商品属性id
    @ColumnComment("商品属性id")
    private String categoryTypeId;
    // 商品品牌id
    @ColumnComment("商品品牌id")
    private String brandId;
    //    商品状态
    @ColumnComment("商品状态")
    private AuditEnum status;
    //    总数量
    @ColumnComment("总数量")
    private Integer number;
    //    已售数量
    @ColumnComment("已售数量")
    private Integer sold;
    //    商品描述
    @ColumnComment("商品描述")
    private String description;
    // 新旧程度(如: 全新、九成新、八成新等)
    @TableField(value = "`condition`")
    @ColumnComment("新旧程度")
    private ConditionEnum condition;
    // 备注
    @ColumnComment("备注")
    private String remark;

}